package com.jic.member.mapper;

import com.jic.member.entity.MememberIntegralLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 会员积分流水表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-04-17 12:50:47
 */
@Mapper
public interface  MememberIntegralLogMapper {

    long insert(MememberIntegralLog mememberIntegralLog);

    long delete(Long id);

    long update(MememberIntegralLog mememberIntegralLog);

    MememberIntegralLog queryByPrimaryKey(Long id);

    List<MememberIntegralLog> query(MememberIntegralLog mememberIntegralLog);

    List<MememberIntegralLog> queryPage(@Param("startIndex") int startIndex , @Param("limit") int limit , @Param("mememberIntegralLog") MememberIntegralLog mememberIntegralLog);

    long queryPageCount(MememberIntegralLog mememberIntegralLog);

    BigDecimal queryTotalNumberOfPointsOnDay(MememberIntegralLog mememberIntegralLog);

    int insertList(@Param("list") List<MememberIntegralLog> list);

}
